<!doctype html>
<html class="no-js" lang="zh-cn">

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta property="og:title" content="">
    <meta property="og:type" content="">
    <meta property="og:url" content="">
    <meta property="og:image" content="">

    <link rel="manifest" href="site.webmanifest">
    <link rel="apple-touch-icon" href="icon.png">
    <!-- Place favicon.ico in the root directory -->

    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/main.css">

    <link href="https://fonts.font.im/css?family=Roboto:300" rel="stylesheet">

    <meta name="theme-color" content="#fafafa">

    <script src="https://unpkg.com/vue@next"></script>
</head>

<body>

    <!-- Add your site or application content here -->
    <header>
        <nav>
            <ul id="header-nav">
                <li><a href="#">CimManagedTemplate</a></li>
                <li v-for="menu in menus">
                    <a v-bind:href="menu.url" class="list-item">{{menu.name}}</a>
                </li>
            </ul>
        </nav>
    </header>

    <div class="sticky"></div>

    <main>
        <aside class="left">
            <h2>How Tos</h2>
            <ul id="create-nav" class="nav">
                <li>
                    <h3>创建</h3>
                </li>
                <hr>
                <li v-for="anchor in anchors" v-bind:class="{active: file == anchor.url}">
                    <a :href="anchor.url">{{anchor.name}}</a>
                </li>
            </ul>
            <ul id="serialize-nav" class="nav">
                <li>
                    <h3>序列与反序列化</h3>
                </li>
                <hr>
                <li><a href="#">导入</a></li>
                <li><a href="#">导出</a></li>
            </ul>
        </aside>
        <article>
            <section class="overview">
                <h1>创建参数化模板</h1>
                <h2>创建一个无参数化模板
                </h2>
                <p>
                    本示例演示如何使用模板的参数化功能，包括点约束系统、数学表达式支持等。
                </p>
                <hr>
            </section>
            <section class="content">
                <h2 id="keyin" class="anchor"><a href="#keyin">命令</a></h2>
                <p>The Accordion component consists of a parent container with the uk-accordion attribute, and a title
                    and content part for each accordion item.</p>
            </section>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
            <p>hele</p>
        </article>
        <aside class="right">
            <nav>
                <ul id="right-nav" class="nav">
                    <li>
                        <h4>当前页</h4>
                    </li>
                    <hr>
                    <li v-for="anchor in anchors" v-bind:class="{active: activeAnchor == anchor.url}">
                        <a v-bind:href="anchor.url" @click="activeChanged(anchor)">{{anchor.name}}</a>
                    </li>
                </ul>
            </nav>
        </aside>
    </main>

    <script src="js/vendor/modernizr-3.11.2.min.js"></script>
    <script src="js/plugins.js"></script>
    <script src="js/main.js"></script>

    <script>
        const HeaderNav = {
            data() {
                return {
                    activeAnchor: '',
                    menus: [
                        { url: '', name: '首页' },
                        { url: '', name: '文档' },
                        { url: 'https://communities.bentley.com/', name: '社区' },
                        { url: 'https://openroads.com.cn/', name: '关于' },
                        { url: '', name: 'FAQ' },
                    ]
                }
            },
        }

        const CreateNav = {
            data() {
                return {
                    activeAnchor: '',
                    anchors: [
                        { url: 'create_rectangle.html', name: '矩形' },
                        { url: 'create_through_hole.html', name: '镂空矩形' },
                        { url: 'create_parametric_through_hole.html', name: '参数化模板' },
                    ],
                    file: location.href.substr(location.href.lastIndexOf('/') + 1),
                }
            },
        }

        const RightNav = {
            data() {
                return {
                    activeAnchor: '',
                    anchors: [
                        { url: '#keyin', name: '命令' },
                    ]
                }
            },
            methods: {
                activeChanged(anchor) {
                    this.activeAnchor = anchor.url;
                }
            }
        }


        Vue.createApp(HeaderNav).mount('#header-nav');
        Vue.createApp(CreateNav).mount('#create-nav');
        Vue.createApp(RightNav).mount('#right-nav');
    </script>

    <!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
    <script>
        window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
        ga('create', 'UA-XXXXX-Y', 'auto'); ga('set', 'anonymizeIp', true); ga('set', 'transport', 'beacon'); ga('send', 'pageview')
    </script>
    <script src="https://www.google-analytics.com/analytics.js" async></script>
</body>

</html>